<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Hamilton Admin</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<!-- load the dojo toolkit base -->
		<style type="text/css">	
		
			@import "/lib/dojo-1.3.0-src/dojo/resources/dojo.css";
			@import "/lib/dojo-1.3.0-src/dijit/themes/dijit.css";
			@import "/lib/dojo-1.3.0-src/dijit/themes/nihilo/nihilo.css";
			@import "/lib/dojo-1.3.0-src/dojox/grid/resources/Grid.css";
			@import "/lib/dojo-1.3.0-src/dojox/grid/resources/nihiloGrid.css";
			/*@import "/lib/dojo-1.3.0-src/dojox/editor/plugins/resources/editorPlugins.css";*/
			@import "/lib/dojo-1.3.0-src/dojox/layout/resources/ExpandoPane.css";
			@import "/lib/dojoc/form/themes/TimestampTextBox.css";
			/*@import "/lib/dojo-1.3.0-src/dojox/form/resources/FileInput.css";*/
			
			.slipstreamViewEntry .dijitTextBox,.slipstreamViewEntry .dijitComboBox	{ width: 280px; margin: 0}
			.slipstreamViewEntry .dijitTextBox.halfwidth	{ width: 140px }
			
			label	{ display: block; margin-top: 10px }
			.dijitTextBox	{ padding: 3px }
			html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow:hidden }
		</style>
		<script type="text/javascript" src="../lib/dojo-1.3.0-src/dojo/dojo.js" djConfig="locale: 'se', isDebug: false, parseOnLoad: true, usePlainJson: true"></script>

		<script type="text/javascript">
			dojo.registerModulePath("dojoc", "../../dojoc");
			dojo.registerModulePath("slipstream", "../../slipstream");
			dojo.require("slipstream.view.Entry");
			dojo.require("dijit.layout.ContentPane");
			dojo.require("dijit.layout.TabContainer");
			function init(){
				var outerFrame=new dijit.layout.BorderContainer({
					style: 'width: 100%; height: 100%; border: 0'
				});
				var header=new dijit.layout.ContentPane({
					title:"Header",
					region: 'top',
					style: 'height: 20px; border: 0; margin: 0',
					content: 'header'
				});
				outerFrame.addChild(header);
				var tabContainer=new dijit.layout.TabContainer({
					title:"Middle",
					region: 'center',
					style: 'overflow: hidden'
				});
				outerFrame.addChild(tabContainer);
				/*var center=new dijit.layout.ContentPane({
					title:"Center",
					region: 'center'
				});
				outerFrame.addChild(center);*/
				var footer=new dijit.layout.ContentPane({
					title:"Footer",
					region: 'bottom',
					content: 'footer'
				});
				outerFrame.addChild(footer);
				var welcomeView=new dijit.layout.ContentPane({
					title:"Välkommen",
					style: 'overflow: hidden',
					content:'hej'
				});
				tabContainer.addChild(welcomeView);
				entryView=new slipstream.view.Entry({
					title: 'Inlägg',
					style: 'overflow: hidden'
				})
				tabContainer.addChild(entryView);
				dojo.body().appendChild(outerFrame.domNode);
				outerFrame.startup();
				console.debug('end');
			}
			dojo.addOnLoad(init);
		</script>
	</head>
	<body class="nihilo"></body>
</html>